//By FreeSouth ieysx@163.com www.osgChina.org 2008 6 13 
#include <osgDB/ReadFile>
#include <osgViewer/Viewer> 
#include <osg/Node> 
#include <osgGA/DriveManipulator>
#include "South.h" 

void main() 
{ 
	osgViewer::Viewer viewer; 
	//viewer.setSceneData(osgDB::readNodeFile("F:/Other/3d/161013.osg")); 
	viewer.setSceneData(osgDB::readNodeFile("F:/other/model/20160908.ive"));
	viewer.setCameraManipulator(new osgGA::DriveManipulator());
	//viewer.setCameraManipulator(new CSouth()) ; 
	/*osg::Vec3d eye, center, up;
	viewer.getCamera()->getViewMatrixAsLookAt(eye, center, up);
	up = osg::Vec3d(0, 0, 1);*/
	//viewer.getCamera()->setViewMatrixAsLookAt(osg::Vec3d(0, 10, 30), osg::Vec3d(10, 0, 0), up);
	viewer.realize();
	
	while (!viewer.done())
	{
		viewer.frame();
	}
}